﻿export default [
  {
    path: '/user',
    layout: false,
    routes: [
      {
        path: '/user',
        routes: [
          {
            name: 'login',
            path: '/user/login',
            component: './user/Login',
          },
        ],
      },
      {
        component: './404',
      },
    ],
  },
  {
    // path 支持为一个 url，必须要以 http 开头
    path: 'https://pro.ant.design/docs/getting-started-cn',
    target: '_blank', // 点击新窗口打开
    name: '文档',
  },
  {
    path: '/welcome',
    name: 'welcome',
    icon: 'smile',
    component: './Welcome',
  },
  {
    name: '心理咨询管理员系统',
    icon: 'table',
    path: '/basic-list',
    component: './BasicList',
  },
  {
    name: '会话',
    icon: 'smile',
    path: '/chat-roome',
    access: 'canConsultant',
    component: './ChatRoom',
  },
  {
    name: '排班表',
    icon: 'table',
    path: '/panbanbiao',
    access: 'canAdmin',
    component: './Paibanbiao',
  },
  {
    name: '咨询师管理',
    icon: 'table',
    path: '/table1',
    access: 'canAdmin',
    component: './Table1List',
  },
  {
    name: '督导管理',
    icon: 'table',
    path: '/table2',
    access: 'canAdmin',
    component: './Table2List',
  },
  {
    name: '表格3',
    icon: 'table',
    path: '/table3',
    access: 'canAdmin',
    component: './Table3List',
  },
  {
    path: '/',
    redirect: '/basic-list',
  },
  {
    component: './404',
  },
];
